package com.zerosky.crm.service;

import java.util.Map;

import com.zerosky.crm.po.PersonalWorkPlan;
import com.zerosky.crm.po.Trip;
import com.zerosky.crm.util.PageInfo;

/**
 * PersonalWorkPlan业务逻辑接口
 * 
 * @author yanglingchao;
 * @since 2017-07-31
 */
public interface PersonalWorkPlanService {
	/**
	 * PersonalWorkPlan列表接口
	 * @param map 
	 * @param page
	 * @return
	 */
	public PageInfo<PersonalWorkPlan> getPersonalWorkPlanList(Map map,PageInfo<PersonalWorkPlan> page);
	
	/**
	 * 通过主键查找PersonalWorkPlan实体接口
	 * @param id 主键ID
	 * @return
	 */
	public PersonalWorkPlan getPersonalWorkPlanById(String id);
	
	/**
	 * 添加或修改数据接口
	 * @param personalWorkPlan 个人工作计划对象
	 * @param operation        操作
	 * @return
	 */
	public Integer insertOrUpdate(PersonalWorkPlan personalWorkPlan,String operation) throws Exception ;
	
	/**
	 * 获取日期小于或等于当前时间的工作计划
	 * @param param
	 * @param pageInfo
	 * @return
	 */
	public PageInfo<PersonalWorkPlan> getTodayPersonalWorkPlanList(Map<String, Object> map, PageInfo<PersonalWorkPlan> page);
	
	/**
	 * 根据id删除记录
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deletePersonalWorkPlan(int id) throws Exception;

}
